<?php
/**
 * licenses : MIT
 * creatTime: 2020/5/17
 * author : weblinuxgame
 * filename: CaptchaApi.php
 */

namespace App\Api\Modules\Captcha;

use Illuminate\Http\Request;
use Illuminate\Http\Response;

/**
 * Interface CaptchaApi
 * @package App\Api\Modules\Captcha
 */
interface CaptchaApi
{

    /**
     * 获取验证码
     * @param Request $request
     * @return Response
     */
    public function captcha(Request $request): Response;

    /**
     * 发送短信验证码
     * @param Request $request
     * @return Response
     */
    public function sendSms(Request $request): Response;

    /**
     * 发送邮件验证码
     * @param Request $request
     * @return Response
     */
    public function sendEmail(Request $request): Response;

}
